//
//  BucketZomibe.m
//  OC3_继承与初始化方法
//
//  Created by 徐国庆 on 14-11-3.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "BucketZomibe.h"

@implementation BucketZomibe


// 实现设置器方法
- (void)setProp:(NSString *)prop
{
    _prop = prop;
    
}
- (void)setweakness:(NSString *)weakness
{
    _weakness = weakness;
}
// 实现访问器方法
- (NSString *)prop
{
    return _prop;
}
- (NSString *)weakness
{
    return _weakness;
}
// 实现指定初始化方法
- (id)initWithTotalVolumeOfZombie:(int)totalVolumeOfZombie zombieEveryBloodLoss:(int)zombieEveryBloodLoss prop:(NSString *)prop weakness:(NSString *)weakness
{
    self = [super initWithTotalVolumeOfZombie:totalVolumeOfZombie zombieEveryBloodLoss:zombieEveryBloodLoss];
    if (self != nil) {
        _prop = prop;
        _weakness = weakness;
    }
    return self;
}
// 实现失去装备方法
- (void)LoseProp
{
    _prop = @"nil";
}
// 重写路障僵尸死亡方法
- (void)death
{
    NSLog(@"路障僵尸死亡");
}
// 实现便利构造器方法
+ (BucketZomibe *)regularZombiesWithtotalVolumeOfZombie:(int)totalVolumeOfZombie zombieEveryBloodLoss:(int)zombieEveryBloodLoss prop:(NSString *)prop weakness:(NSString *)weakness
{
    BucketZomibe *restule2 = [[BucketZomibe alloc] initWithTotalVolumeOfZombie:totalVolumeOfZombie zombieEveryBloodLoss:zombieEveryBloodLoss prop:prop weakness:weakness];
    return restule2;
}















@end
